﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace SprentCMS.Web.Areas.News {
    public class Routes : AreaRegistration {
        public override string AreaName {
            get { return "news"; }
        }

        public override void RegisterArea(AreaRegistrationContext context) {
            context.MapRoute(
                "news_default",
                "news/{controller}/{action}/{id}",
                new { controller = "Home", action = "Index", id = "" }
            );

            //context.MapRoute(
            //    "news_whatsnew",
            //    "whats-new",
            //    new { controller = "Home", action = "WhatsNew", id = "" }
            //);
        }
    }
}
